import request from '@/utils/request'

/**
 * 获取投标列表
 */
export function listSysTbApi(params?: any) {
  return request({
    url: '/sys/sysTb/list',
    method: 'get',
    params
  })
}

/**
 * 获取投标详情
 */
export function detailSysTbApi(id: any) {
  return request({
    url: '/sys/sysTb/' + id,
    method: 'get'
  })
}

/**
 * 添加投标
 */
export function addSysTbApi(data: any) {
  return request({
    url: '/sys/sysTb/add',
    method: 'post',
    data
  })
}

/**
 * 修改投标
 */
export function updateSysTbApi(data: any) {
  return request({
    url: `/sys/sysTb/update`,
    method: 'put',
    data
  })
}

/**
 * 定标
 */
export function updateDb(data: any) {
  return request({
    url: `/sys/sysTb/updateDb`,
    method: 'put',
    data
  })
}

/**
 * 删除投标
 */
export function deleteSysTbApi(ids: number[] | number) {
  return request({
    url: `/sys/sysTb/delete/` + ids,
    method: 'delete'
  })
}


